package com.gitee.wsl.compose.mvi.ui.button

import com.gitee.wsl.compose.mvi.component.base.Interactor
import com.gitee.wsl.compose.mvi.modifiable.interactable.InteractableModifier


data class ButtonInteractor(
    override val modifier: InteractableModifier = InteractableModifier,

    /**
     * Controls the enabled state of the button. When false, this button will not be clickable
     */
    val enabled: Boolean = true,

    /**
     * Will be called when the user clicks the button.
     */
    val onClick: () -> Unit
) : Interactor(modifier)